/*var mongoose = require('../db/db.js'),
	bcrypt = require('bcryptjs'),
	Schema = mongoose.Schema;

var UserSchema = new Schema({
	username: {
		type: String,
		require: true,
		unique: true
	},
	password: {
		type: String,
		require: true
	},
	nickname: {
		type: String,
		require: true
	},
	age: {
		type: Number,
		require: true
	},
	role: {
		type: String,
		require: true
	},
	last_login:{
		type: Date,
		require: true,
		default: Date.now
	}
});

UserSchema.methods.comparePassword = function(password){
	return bcrypt.compareSync(password, this.password);
}

mongoose.model('User', UserSchema);*/